Method for selecting carrier and communication device

ABSTRACT

A carrier selection method and a communications device includes obtaining channel busy ratios (CBR) of a plurality of candidate carriers. The method also includes performing filtering processing on the CBRs of the plurality of candidate carriers to obtain CBRs of the plurality of candidate carriers after filtering. The method also includes selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers that are obtained after filtering. Therefore, filtering processing is performed on a measurement result of the CBRs of the plurality of candidate carriers, and the carrier is selected from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers that are obtained after filtering processing, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation of and claims priority to International Patent Application No. PCT/CN2018/085497, filed on May 3, 2018, which claims priority to International Patent Applications PCT/CN2017/101903, filed on Sep. 15, 2017; PCT/CN2017/103819 filed Sep. 27, 2017; and PCT/CN2018/080715 filed Mar. 27, 2018, the contents of which are hereby incorporated by reference in their entirety.

BACKGROUND OF THE INVENTION Technical Field

Embodiments of this application relate to the wireless communications field, and more specifically, to a carrier selection method and a communications device.

Related Art

An Internet of Vehicles or Vehicle-to-Everything (V2X) communications system is a sidelink (SL) transmission technology based on device-to-device (D2D) communication. Different from a conventional manner in which a base station receives or sends data in a Long Term Evolution (Long Term Evolution, LTE) system, the Internet of Vehicles system uses a terminal-to-terminal direct communication manner. Therefore, spectrum efficiency is higher and a transmission delay is lower.

In the Internet of Vehicles system supporting multicarrier transmission, a terminal device may currently transmit data by using one or more of a plurality of candidate carriers. Therefore, how a terminal device or a base station selects a carrier becomes a problem that urgently needs to be resolved.

SUMMARY OF THE INVENTION

Embodiments of this application provide a carrier selection method and a communications device, where the communications device can effectively select a carrier and maintain system stability.

According to a first aspect, a carrier selection method is provided, including: obtaining channel busy ratios (CBR) of a plurality of candidate carriers; performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Therefore, filtering processing is performed on measured results of the CBRs of the plurality of carriers, and the carrier is selected from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering processing, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

In a possible implementation, the performing filtering processing on the CBRs of the plurality of carriers includes: performing smooth filtering on the CBRs of the plurality of carriers.

In a possible implementation, a CBR of each of the plurality of carriers after smooth filtering is: CBR_new=a×CBR_old+(1−a)×CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

In a possible implementation, the method further includes: determining whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the CBR of the first carrier that is obtained after filtering exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the plurality of carriers include the first carrier.

In a possible implementation, the plurality of carriers do not include the first carrier.

In a possible implementation, the method further includes: determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, whether a carrier selection is performed is determined based on a difference between CBRs between a current carrier and another carrier, and the carrier is selected based on the CBRs that are obtained after the filtering processing when the difference between the CBRs satisfies a condition, further reducing carrier switching frequency and ensuring system stability.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

In a possible implementation, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the first threshold.

In a possible implementation, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

In a possible implementation, the method further includes: determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

In a possible implementation, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: when a value of a resource reselection counter C_resel is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, a process of selecting the carrier does not rely on a ProbResourceKeep parameter, and instead, whether the carrier selection needs to be performed currently is determined based on the resource reselection counter C_resel. When the carrier selection needs to be performed, the carrier is selected based on the CBRs that are obtained after filtering processing, reducing carrier switching frequency and ensuring system stability.

In a possible implementation, each of the plurality of carriers is configured with a corresponding C_resel, where the selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the plurality of carriers are configured with a same C_resel; and the selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: when a value of the same C_resel is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the method further includes: determining, when a value of a C_resel is equal to 0, whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the CBR of the first carrier that is obtained after filtering exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the plurality of carriers include the first carrier.

In a possible implementation, the plurality of carriers do not include the first carrier.

In a possible implementation, each of the plurality of carriers is configured with a corresponding C_resel, where the determining, when a value of a C_resel is equal to 0, whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold includes: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determining whether the CBR of the first carrier that is obtained after filtering exceeds the third threshold.

In a possible implementation, the plurality of carriers are configured with a same C_resel; and the determining, when a value of a C_resel is equal to 0, whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold includes: when a value of the same C_resel is equal to 0, determining whether the CBR of the first carrier that is obtained after filtering exceeds the third threshold.

In a possible implementation, the method further includes: determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, whether the carrier needs to be selected currently is determined based on the resource C_resel, and whether the difference between the CBRs of the current carrier and another carrier satisfies a condition is determined when the carrier needs to be selected. When the difference between the CBRs satisfies the condition, the carrier is selected based on the CBRs that are obtained after filtering processing, further reducing carrier switching frequency and ensuring system stability.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

In a possible implementation, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the first threshold.

In a possible implementation, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

In a possible implementation, each of the plurality of carriers is configured with a corresponding C_resel, where the determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold includes: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

In a possible implementation, the plurality of carriers are configured with a same C_resel; and the determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold includes: when a value of the same C_resel is equal to 0, determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering. In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

In a possible implementation, the method further includes: determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

In a possible implementation, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting a carrier having a smallest CBR obtained after filtering as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

In a possible implementation, the method is performed by the network device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

In a possible implementation, the carrier selection process is irrelevant to a resource keep probability ProbResourceKeep parameter.

In a possible implementation, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

In a possible implementation, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

According to a second aspect, a carrier selection method is provided, including: obtaining channel busy ratios (CBR) of a plurality of candidate carriers; determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Therefore, whether a carrier selection is performed is determined based on a difference between CBRs between a current carrier and another carrier, and the carrier is selected only when the difference between the CBRs satisfies a condition, reducing carrier switching frequency and ensuring system stability.

In a possible implementation, the determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of a resource reselection counter C_resel is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

In this embodiment, whether the carrier needs to be selected currently is determined based on the resource C_resel, and whether the difference between the CBRs of the current carrier and another carrier satisfies a condition is determined when the carrier needs to be selected. When the difference between the CBRs satisfies the condition, the carrier is selected based on CBRs of different carriers, reducing carrier switching frequency and ensuring system stability.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold.

In a possible implementation, the method further includes: if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting a carrier having the smallest CBR as a to-be-used carrier from the plurality of carriers.

In a possible implementation, the determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of C_resel is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

In a possible implementation, each of the plurality of carriers is configured with a corresponding C_resel, where the determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

In a possible implementation, the plurality of carriers are configured with a same C_resel; and the determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of the same C_resel is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

In a possible implementation, the selecting a carrier from the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

In a possible implementation, the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the first threshold.

In a possible implementation, the method is performed by the network device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

In a possible implementation, the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

In a possible implementation, the carrier selection process is irrelevant to a resource keep probability ProbResourceKeep parameter.

In a possible implementation, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

In a possible implementation, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

According to a third aspect, a carrier selection method is provided, including: obtaining channel busy ratios (CBR) of a plurality of candidate carriers; and when a value of a resource reselection counter C_resel is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Therefore, a process of selecting the carrier does not rely on a ProbResourceKeep parameter, and instead, whether the carrier selection needs to be performed currently is determined based on the resource reselection counter C_resel, implementing effective carrier selection and reducing system complexity.

In a possible implementation, each of the plurality of carriers is configured with a corresponding C_resel, where the selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the plurality of carriers are configured with a same C_resel; and the selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when a value of the same C_resel is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the method further includes: when a value of a C_resel is equal to 0, determining whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and

the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the plurality of carriers include the first carrier.

In a possible implementation, the plurality of carriers do not include the first carrier.

In a possible implementation, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

In a possible implementation, the method is performed by the network device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

In a possible implementation, the carrier selection process is irrelevant to a resource keep probability ProbResourceKeep parameter.

In a possible implementation, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

In a possible implementation, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

According to a fourth aspect, a carrier selection method is provided, including: obtaining channel busy ratios (CBR) of a plurality of candidate carriers; and selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Therefore, whether the carrier is selected is determined based on a location movement of the terminal device, and the carrier is selected only when a geographical zone of the terminal device changes, thereby reducing carrier switching frequency and ensuring system stability.

In a possible implementation, the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In this embodiment, when the geographical zone of the terminal device changes, whether to select the carrier is determined according to the difference between the CBRs of the current carrier and another carrier, and when the difference between the CBRs satisfies the condition, the carrier is selected, thereby further reducing carrier switching frequency and ensuring system stability.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for the preset duration, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

In a possible implementation, selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold.

In a possible implementation, the method further includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and if the difference between the CBR of the first carrier and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting a carrier having the smallest CBR as a to-be-used carrier from the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the first threshold.

In a possible implementation, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

In a possible implementation, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and

the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, when a geographical zone of the terminal device changes, filtering processing is performed on measured results of the CBRs of the plurality of carriers, and the carrier is selected from the plurality of filtered carriers according to the CBRs of the plurality of carriers that are obtained after filtering processing, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

In a possible implementation, the performing filtering processing on the CBRs of the plurality of carriers includes: performing smooth filtering on the CBRs of the plurality of carriers.

In a possible implementation, a CBR of each of the plurality of carriers after smooth filtering is: CBR_new=a×CBR_old+(1−a)×CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

In a possible implementation, the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the plurality of carriers include the first carrier.

In a possible implementation, the plurality of carriers do not include the first carrier.

In a possible implementation, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the plurality of carriers include the first carrier.

In a possible implementation, the plurality of carriers do not include the first carrier.

In a possible implementation, the performing filtering processing on the CBRs of the plurality of carriers includes: performing smooth filtering on the CBRs of the plurality of carriers.

In a possible implementation, a CBR of each of the plurality of carriers after smooth filtering is: CBR_new=a×CBR_old+(1−a)×CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

In a possible implementation, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, when the geographical zone of the terminal device changes, whether to select the carrier is determined according to the difference between the CBRs of the current carrier and another carrier, and when the difference between the CBRs satisfies the condition, filtering processing is performed on the measurement result of the CBRs of the plurality of carriers, and the carrier is selected from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering processing, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

In a possible implementation, the performing filtering processing on the CBRs of the plurality of carriers includes: performing smooth filtering on the CBRs of the plurality of carriers.

In a possible implementation, a CBR of each of the plurality of carriers after smooth filtering is: CBR_new=a×CBR_old+(1−a)×CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

In a possible implementation, selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

In a possible implementation, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

In a possible implementation, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR obtained after filtering as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

In a possible implementation, the method is performed by the network device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

In a possible implementation, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

In a possible implementation, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

According to a fifth aspect, a carrier selection method is provided, including: obtaining channel busy ratios (CBR) of a plurality of candidate carriers; determining whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Therefore, the CBR of the current carrier is compared with the third threshold, and when the CBR of the first carrier is greater than the third threshold, the carrier is selected, thereby reducing carrier switching frequency and ensuring system stability.

In a possible implementation, the plurality of carriers include the first carrier.

In a possible implementation, the plurality of carriers do not include the first carrier.

In a possible implementation, the selecting a carrier from the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

In a possible implementation, the method is performed by the terminal device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

In a possible implementation, the method further includes: obtaining, by the terminal device, the third threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the third threshold.

In a possible implementation, the method is performed by the network device, and the obtaining CBRs of the plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

In a possible implementation, the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the third threshold.

In a possible implementation, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

In a possible implementation, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

According to a sixth aspect, a communications device is provided. The communications device may perform the operation of the communications device according to the first aspect or any optional implementation of the first aspect. Specifically, the communications device may include modules or units configured to perform the operations according to the first aspect or any possible implementation of the first aspect.

According to a seventh aspect, a communications device is provided. The communications device may perform the operation of the communications device according to the second aspect or any optional implementation of the second aspect. Specifically, the communications device may include modules or units configured to perform the operations according to the second aspect or any possible implementation of the second aspect.

According to an eighth aspect, a communications device is provided. The communications device may perform the operation of the communications device according to the third aspect or any optional implementation of the third aspect. Specifically, the communications device may include modules or units configured to perform the operations according to the third aspect or any possible implementation of the third aspect.

According to a ninth aspect, a communications device is provided. The communications device may perform the operation of the communications device according to the fourth aspect or any optional implementation of the fourth aspect. Specifically, the communications device may include modules or units configured to perform the operations according to the fourth aspect or any possible implementation of the fourth aspect.

According to a tenth aspect, a communications device is provided. The communications device may perform the operation of the communications device according to the fifth aspect or any optional implementation of the fifth aspect. Specifically, the communications device may include modules or units configured to perform the operations according to the fifth aspect or any possible implementation of the fifth aspect.

According to an eleventh aspect, a communications device is provided. The communications device includes: a processor, a transceiver, and a memory. The processor, the transceiver, and the memory communicate with each other through an internal connection path. The memory is configured to store an instruction, and the processor is configured to perform the instruction stored by the memory. When the processor performs the instruction stored by the memory, the execution enables the communications device to perform the method according to the first aspect or any possible implementation of the first aspect, or the execution enables the communications device to implement the communications device according to the sixth aspect.

According to a twelfth aspect, a communications device is provided. The communications device includes: a processor, a transceiver, and a memory. The processor, the transceiver, and the memory communicate with each other through an internal connection path. The memory is configured to store an instruction, and the processor is configured to perform the instruction stored by the memory. When the processor performs the instruction stored by the memory, the execution enables the communications device to perform the method according to the second aspect or any possible implementation of the second aspect, or the execution enables the communications device to implement the communications device according to the seventh aspect.

According to a thirteenth aspect, a communications device is provided. The communications device includes: a processor, a transceiver, and a memory. The processor, the transceiver, and the memory communicate with each other through an internal connection path. The memory is configured to store an instruction, and the processor is configured to perform the instruction stored by the memory. When the processor performs the instruction stored by the memory, the execution enables the communications device to perform the method according to the third aspect or any possible implementation of the third aspect, or the execution enables the communications device to implement the communications device according to the eighth aspect.

According to a fourteenth aspect, a communications device is provided. The communications device includes: a processor, a transceiver, and a memory. The processor, the transceiver, and the memory communicate with each other through an internal connection path. The memory is configured to store an instruction, and the processor is configured to perform the instruction stored by the memory. When the processor performs the instruction stored by the memory, the execution enables the communications device to perform the method according to the fourth aspect or any possible implementation of the fourth aspect, or the execution enables the communications device to implement the communications device according to the ninth aspect.

According to a fifteenth aspect, a communications device is provided. The communications device includes: a processor, a transceiver, and a memory. The processor, the transceiver, and the memory communicate with each other through an internal connection path. The memory is configured to store an instruction, and the processor is configured to perform the instruction stored by the memory. When the processor performs the instruction stored by the memory, the execution enables the communications device to perform the method according to the fifth aspect or any possible implementation of the fifth aspect, or the execution enables the communications device to implement the communications device according to the tenth aspect.

According to a sixteenth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a program, and the program enables the communications device to perform any carrier selection method according to the first aspect and the implementations of the first aspect.

According to a seventeenth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a program, and the program enables the communications device to perform any carrier selection method according to the second aspect and the implementations of the second aspect.

According to an eighteenth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a program, and the program enables the communications device to perform any carrier selection method according to the third aspect and the implementations of the third aspect.

According to a nineteenth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a program, and the program enables the communications device to perform any carrier selection method according to the fourth aspect and the implementations of the fourth aspect.

According to a twentieth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a program, and the program enables the communications device to perform any carrier selection method according to the fifth aspect and the implementations of the fifth aspect.

According to a twenty-first aspect, a chip is provided. The chip includes an input interface, an output interface, a processor, and a memory, the processor is configured to perform an instruction stored by the memory, and when the instruction is executed, the processor may perform the method according to the first aspect or any possible implementation of the first aspect.

According to a twenty-second aspect, a chip is provided. The chip includes an input interface, an output interface, a processor, and a memory, the processor is configured to perform an instruction stored by the memory, and when the instruction is executed, the processor may perform the method according to the second aspect or any possible implementation of the second aspect.

According to a twenty-third aspect, a chip is provided. The chip includes an input interface, an output interface, a processor, and a memory, the processor is configured to perform an instruction stored by the memory, and when the instruction is executed, the processor may perform the method according to the third aspect or any possible implementation of the third aspect.

According to a twenty-fourth aspect, a chip is provided. The chip includes an input interface, an output interface, a processor, and a memory, the processor is configured to perform an instruction stored by the memory, and when the instruction is executed, the processor may perform the method according to the fourth aspect or any possible implementation of the fourth aspect.

According to a twenty-fifth aspect, a chip is provided. The chip includes an input interface, an output interface, a processor, and a memory, the processor is configured to perform an instruction stored by the memory, and when the instruction is executed, the processor may perform the method according to the fifth aspect or any possible implementation of the fifth aspect.

According to a twenty-sixth aspect, a computer program product including an instruction is provided. When the computer program product runs on a computer, the computer is enabled to perform the method according to the first aspect or any possible implementation of the first aspect.

According to a twenty-seventh aspect, a computer program product including an instruction is provided. When the computer program product runs on a computer, the computer is enabled to perform the method according to the second aspect or any possible implementation of the second aspect.

According to a twenty-eighth aspect, a computer program product including an instruction is provided. When the computer program product runs on a computer, the computer is enabled to perform the method according to the third aspect or any possible implementation of the third aspect.

According to a twenty-ninth aspect, a computer program product including an instruction is provided. When the computer program product runs on a computer, the computer is enabled to perform the method according to the fourth aspect or any possible implementation of the fourth aspect.

According to a thirtieth aspect, a computer program product including an instruction is provided. When the computer program product runs on a computer, the computer is enabled to perform the method according to the fifth aspect or any possible implementation of the fifth aspect.

According to an embodiment of the present invention, a communications device is provided that includes an obtaining unit, configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers, a filtering unit, configured to perform filtering processing on the CBRs of the plurality of carriers obtained by the obtaining unit, to obtain CBRs of the plurality of carriers after filtering, and a carrier selection unit, configured to select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering by the filtering unit.

According to another embodiment of the present invention, a communications device is provided that includes an obtaining unit, configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers, a determining unit, configured to determine whether a difference between a CBR of a first carrier and a CBR of a second carrier exceeds a first threshold, wherein the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers, and a carrier selection unit, configured to: when the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers obtained by the obtaining unit.

According to yet another embodiment of the present invention, a communications device is provided that includes an obtaining unit, configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers, and a carrier selection unit, configured to: when a value of a resource reselection counter C_resel is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers obtained by the obtaining unit.

According to an alternative embodiment of the present invention, a communications device is provided that includes an obtaining unit, configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers, and a carrier selection unit, configured to: when a terminal device moves from a first zone to a second zone, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers obtained by the obtaining unit.

According to yet another alternative embodiment of the present invention, a communications device is provided that includes an obtaining unit, configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers, a determining unit, configured to determine whether a CBR of a first carrier exceeds a third threshold, wherein the first carrier is a carrier used in current data transmission, and a carrier selection unit, configured to: when the CBR of the first carrier exceeds the third threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

The communications devices described herein can include a processor configured to invoke an instruction stored in a memory, to perform the methods described herein. The storage medium can store a computer program that, when executed by a computing device, is enabled to perform the methods described herein. Moreover, a chip can include a processor that is configured to invoke and run a computer program from a memory to enable a device having the chip installed therein to perform the methods described herein.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic architectural diagram of an application scenario according to an embodiment of this application;

FIG. 2 is a schematic architectural diagram of another application scenario according to an embodiment of this application;

FIG. 3 is a schematic diagram of resource sensing and selection according to another embodiment of this application;

FIG. 4 is a schematic flowchart of a carrier selection method according to still another embodiment of this application;

FIG. 5 is a schematic flowchart of a carrier selection method according to another embodiment of this application;

FIG. 6 is a schematic flowchart of a carrier selection method according to still another embodiment of this application;

FIG. 7 is a schematic flowchart of a carrier selection method according to still another embodiment of this application;

FIG. 8 is a schematic flowchart of a carrier selection method according to still another embodiment of this application;

FIG. 9 is a schematic block diagram of a communications device according to an embodiment of this application;

FIG. 10 is a schematic block diagram of a communications device according to another embodiment of this application;

FIG. 11 is a schematic block diagram of a communications device according to still another embodiment of this application;

FIG. 12 is a schematic block diagram of a communications device according to still another embodiment of this application;

FIG. 13 is a schematic block diagram of a communications device according to still another embodiment of this application;

FIG. 14 is a schematic structural diagram of a communications device according to an embodiment of this application; and

FIG. 15 is a schematic structural diagram of a chip according to an embodiment of this application.

DETAILED DESCRIPTION OF THE INVENTION

The following describes the technical solutions in the embodiments of this application with reference to the accompanying drawings.

It should be understood that the technical solutions in the embodiments of this application may be applied to various communications systems, for example, a Global System of Mobile Communication (GSM) system, a Code Division Multiple Access (CDMA) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), Universal Mobile Telecommunications System (UMTS), and a future 5G communications system.

This application describes the embodiments with reference to a terminal device. The terminal device may also be user equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile console, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communications device, a user agent, or a user apparatus. The access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, or another processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved public land mobile network (PLMN) network, or the like.

This application describes the embodiments with reference to a network device. The network device may be a device configured to communicate with a terminal device, for example, may be a base transceiver station (BTS) in a GSM system or CDMA, a NodeB (NB) in a WCDMA system, or an evolved Node B (eNB) in an LTE system, or may be a relay station, an access point, an in-vehicle device, a wearable device, or a network side device in a future 5G network or a network side device in a future evolved PLMN network.

FIG. 1 and FIG. 2 are schematic diagrams of application scenarios according to embodiments of this application. FIG. 1 shows an example of a network device and two terminal devices. Optionally, a wireless communications system may include a plurality of network devices, and another quantity of terminal devices may be included within the coverage of each network device. This is not limited in the embodiments of the present invention. In addition, the wireless communications system may further include other network entities such as a mobility management entity (MME), a serving gateway (S-GW), and a packet data network gateway (P-GW), but the embodiments of the present invention are not limited thereto.

Specifically, the terminal device 20 and the terminal device 30 may communicate in a cellular communication mode or a D2D communication mode. In the cellular communication mode, the terminal device communicates with another terminal device through a cellular link with the network device. For example, as shown in FIG. 1, both the terminal device 20 and the terminal device 30 may perform data transmission with the network device. In the D2D communication mode, two terminal devices directly communicate through a D2D link, that is, a sidelink (SL) also referred to as a terminal direct link. For example, as shown in FIG. 1 or FIG. 2, the terminal device 20 and the terminal device 30 directly communicate through a sidelink.

D2D communication may be vehicle to vehicle (“V2V”) communication or vehicle to everything (V2X) communication. In V2X communication, X may collectively refers to any device having a wireless receiving and sending capability, for example, but not limited to a wireless apparatus moving at a low speed, an in-vehicle device moving at a high speed, or a network control node having a wireless transmitting and receiving capability. It should be understood that the embodiments of the present invention are mainly applied to a V2X communication scenario, but may be also applied to any other D2D communication scenario, and this is limited in the embodiments of the present invention.

In an Internet of Vehicles system, there may be two types of terminal devices: a terminal device capable of sensing such as vehicle user equipment (VUE) or pedestrian user equipment (PUE), and a terminal device not capable of sensing such as a PUE. A processing capability of the VUE is higher and the VUE is generally powered by a battery in the vehicle. However, a processing capability of the PUE is lower, and a main factor that needs to be considered for the PUE is reducing power consumption. Therefore, in an existing Internet of Vehicles system, the VUE is considered as fully capable of receiving and sensing, while the PUE is considered as partially or not capable of receiving and sensing. If the PUE is partially capable of sensing, a resource may be selected for the PUE by using a sensing method similar to that of the VUE, that is, an available resource is selected from a part of resource that can be sensed. If the PUE is not capable of sensing, a transmission resource is randomly selected for the PUE from a resource pool.

Two transmission modes are defined in a 3GPP protocol: a transmission mode 3 (mode 3) and a transmission mode 4 (mode 4). A transmission resource of a terminal device using the transmission mode 3 is allocated by a base station, and the terminal device sends data on a sidelink based on the resource allocated by the base station. The base station may allocate a resource of a single transmission for the terminal device or may allocate a resource of a semi-static transmission for the terminal device. A terminal device using the transmission mode 4 transmits data in a manner of sensing (sensing) and reservation (reservation). The terminal device obtains an available resource set in the resource pool in a manner of sensing and randomly selects a resource from the available resource set for data transmission. A service in the Internet of Vehicles system has a periodic feature, therefore the terminal device generally uses a manner of semi-static transmission. To be specific, after the terminal device selects a transmission resource, the resource will be used continuously in a plurality of transmission periods, thereby reducing a probability of resource reselection and resource conflict. The terminal device adds information for reserving a next-time transmission resource to control information that is to be transmitted this time, so that another terminal device may determine, by detecting the control information of the terminal device, whether the resource has been reserved and used by the terminal device, thereby reducing a resource conflict.

When the terminal device senses the resource, specifically refer to the method shown in FIG. 3. In a 3GPP protocol of Release-14, a resource needs to be selected when a new data packet arrives at a moment n in each sidelink process (sidelink process) (one carrier may include two processes). The terminal device selects the resource in a time segment [n+T1, n+T2] ms based on a sensing result of a sensing window in a previous 1s (that is, 1000 ms). The time segment [n+T1, n+T2] ms is referred to as a selection window, where T1 and T2, for example, may satisfy T1≤4 and 20≤T2≤100. A previous is mentioned in the following refers to the previous 1s for the moment n. A specific resource selection process is described below. A description is provided by using an example of a terminal device 20 sensing a resource of a terminal device 30, and it is assumed that all the resources that may be used by the terminal device 20 for transmission in the selection window are referred to as a candidate resource set.

(1) If no sensing result exists in some sub-frames in the sensing window, for example, the terminal device 20 transmits data thereof on the sub-frames, resources in the sub-frames in a corresponding position of the selection window is excluded outside the candidate resource set.

(2) If the terminal device 20 detects, in the sensing window of the previous 1s, a physical sidelink control channel (PSCCH) sent by the terminal device 30, a measurement value of a reference signal received power (RSRP) of a physical sidelink shared channel (PSSCH) corresponding to the PSCCH is greater than a preset threshold, and the detected PSCCH indicates that the terminal device 30 sending the PSCCH reserves a time frequency resource required for a next-time transmission, the terminal device 20 determines whether the time frequency resource reserved by the terminal device 30 in the selection window overlaps with the time frequency resource selected for data transmission in the selection window by the terminal device 20. If the time frequency resource reserved by the terminal device 30 in the selection window overlaps with the time frequency resource selected for data transmission in the selection window by the terminal device 20, a resource conflict occurs and the terminal device 20 excludes the time frequency resource in the selection window outside the candidate resource set.

It should be understood that if the terminal device 20 selects the time frequency resource used for data transmission in the selection window, and data needs to be transmitted on the plurality of time frequency resources distributed based on a time period T3, if the terminal device 30 reserves the plurality of time frequency resources distributed based on a time period T2, and the time period T3 satisfies T3×M=T2×N, where M and N are positive integers, the terminal device 20 excludes the plurality of time frequency resources distributed based on the time period T3 outside the candidate resource set.

(3) The terminal device 20 measures a received signal strength indicator (RSSI) for the rest resources in the candidate resource set, and sorts the rest resources in descending order of measurement results, and excludes resources whose energy is greater than a threshold outside the candidate resource set, for example, the first 80% resources having a high measured power are excluded outside the candidate resource set.

(4) The terminal device 20 randomly selects a time frequency resource for data transmission from the last rest candidate resource set.

It should be understood that a time frequency resource occupied by a data channel corresponding to a control channel is referred to as a time frequency resource (or a resource block) used to transmit the data channel. There may be a plurality of time frequency resources used to transmit the data channel in the candidate resource set in each selection window. For example, both the resources A1 and B1 in FIG. 3 can be referred to as a time frequency resource.

After the terminal device 20 selects a time frequency resource used for data transmission, the time frequency resource will be used for C_resel times in a subsequent transmission process, where C_resel is a resource reselection counter (Resource Reselection Counter). Each time data is transmitted, a value of C_resel minus 1, and when the value of C_resel minus to 0, the terminal device 20 generates a random number between [0, 1], and compares the random number with a Probability Resource Keep (ProbResourceKeep) parameter. The parameter indicates a probability of continuing to use the resource by the terminal device. If a value of the random number is greater than the parameter, the terminal device 20 reselects a resource, and if the value of the random number is less than the parameter, the terminal device 20 may continue to use the time frequency resource for data transmission, and resets the value of C_resel at the same time.

In an Internet of Vehicles system supporting a multi-carrier transmission, regardless of whether the terminal device uses the transmission mode 3 or the transmission mode 4, one or more carriers in a plurality of candidate carriers may be used in current data transmission. The terminal device using the transmission mode 4 may select one or more carriers in the plurality of candidate carriers for the current data transmission, and the terminal device using the transmission mode 3 may perform the current data transmission based on one or more carriers selected by a base station.

The terminal device may measure a congestion level of the system such as a channel busy ratio (CBR), and the base station may instruct the terminal device to report the measurement result to the base station, so that the base station configures a transmission parameter, such as a modulation coding mode (MCS) allowed by the terminal device, a range of a number of available physical resource blocks (PBR), and a number of retransmission times, based on the CBR reported by the terminal device.

The CBR may be used by the terminal device for selecting a carrier, for example, the terminal device may select, based on a CBR measurement result of the plurality of carriers, a carrier with a lowest CBR for data transmission. However, the CBR of each carrier rapidly changes with the movement of the terminal device, or the CBR changes as the time changes. As a result, the terminal device frequently switches between the pluralities of carriers when selecting the carrier each time, causing an unstable system.

For the carrier selection method provided in the embodiment of this application, the terminal device or a network device may properly process the CBR and select the carrier based on the processed CBR, to effectively select the carrier and maintain a stable system at the same time.

FIG. 4 is a schematic flowchart of a carrier selection method according to an embodiment of this application. The method shown in FIG. 4 may be performed by a communications device. The communications device includes a terminal device or a network device, the terminal device may be, for example, the terminal device 20 or the terminal device 30 shown in FIG. 2, and the network device may be, for example, the network device 10 shown in FIG. 1 or FIG. 2. The following provides a description by using the terminal device as an example, but the method described in this application may also be performed by the network device or the like. As shown in FIG. 4, the carrier selection method includes:

410. Obtain channel busy ratios (CBR) of a plurality of candidate carriers.

420. Perform filtering processing on the CBRs of the plurality of carriers to obtain CBRs of the plurality of carriers after filtering.

430. Select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Specifically, the terminal device obtains the CBRs of the plurality of carriers that may be used for data transmission, and performs filtering processing the CBRs of the plurality of candidate carriers to obtain the CBRs of the plurality of carriers after the filtering processing, and then selects the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering, to select a to-be-used carrier. If the selected to-be-used carrier is the same as the carrier currently used by the terminal device, carrier switching does not need to be performed, otherwise, the carrier switching is performed.

The CBR of each carrier may rapidly change with a position change of the terminal device or change as the time changes, filtering processing is performed for a measured value of the CBR of each carrier, so that the change of the CBR of each carrier tends to be smooth, thereby reducing carrier switching frequency and ensuring system stability while realizing carrier selection.

The CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on each carrier.

Further, optionally, the resource pool used by the terminal device on each carrier is a resource pool corresponding to a zone of the terminal device (that is, a geographical zone) in a plurality of resource pools, and there is a correspondence between the plurality of resource pools and a plurality of zones.

Specifically, a plurality of geographical zones may be divided, and there is a correspondence between the plurality of geographical zones and the plurality of resource pools. A resource pool used by the terminal device for data transmission on each carrier is a resource pool corresponding to a current geographical zone of the terminal device. When the terminal device uses the resource pool to perform data transmission with the network device, a CBR measured by the terminal device is a CBR of the resource pool. To be specific, the CBR measured by the terminal device is a CBR of a channel resource in the resource pool. When the terminal device is located in different geographical zones, resource pools used in each carrier may also be different.

A correspondence between the plurality of geographical zones and the plurality of resource pools may be represented, for example, by a mapping table or a formula, and this is not limited in the embodiment of this application. In addition, a geographical zone may correspond to one or more resource pools, a resource pool may also correspond to one or more geographical zones, or the plurality of geographical zones and the plurality of resource pools are in a one-to-one correspondence.

Optionally, if the method is performed by the terminal device, in 410, the obtaining CBRs of a plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers to obtain the CBRs of the plurality of carriers.

For example, the terminal device measures the CBRs of the plurality of carriers and reports the CBRs to an upper layer, and the upper layer performs filtering processing on the CBRs of the plurality of carriers reported by a bottom layer. The terminal device selects the carrier according to the CBRs of the plurality of carriers that are obtained after filtering.

Otherwise, optionally, the method is performed by the terminal device. In 410, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, if the method is performed by the network device, in 410, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers reported by the terminal device.

For example, the network device may instruct the terminal device to measure the CBR of each carrier and report the measurement result to the network device.

Optionally, in 420, the performing filtering processing the CBRs of the plurality of carriers includes: performing smooth filtering for the CBRs of the plurality of carriers.

A method of smooth filtering is not limited in the embodiment of this application.

For example, a method of the smooth filtering may be CBR_new=a×CBR_old+(1−a)×CBR_current.

CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering when a carrier is selected previously, and a is a filtering coefficient and 0≤a≤1.

It can be learnt that filtering a measured CBR by using a proper filtering method avoids a frequent carrier switching caused by a rapid change of the CBR.

Optionally, in 430, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Five specific carrier selection methods used by the terminal device or the network device are further provided in the embodiments of this application based on the above carrier selection method. The following provides a description by using the terminal device as an example.

Method 1

Optionally, before 430, before the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering, the method further includes: determining whether a difference between a CBR of a first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold. The first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers.

In 430, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting the carrier from the plurality of carriers based on the CBRs of the plurality of carries that are obtained after filtering.

In this embodiment, whether a carrier selection is performed is determined based on a difference between CBRs between a current carrier and another carrier, and the carrier is selected based on the CBRs that are obtained after the filtering processing when the difference between the CBRs satisfies a condition, further reducing carrier switching frequency and ensuring system stability.

Optionally, when the method is performed by the terminal device, before the determining whether a difference between a CBR of a first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by a network device, where the configuration information includes the first threshold.

Optionally, when the method is performed by the network device, the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

For example, a quantity of the plurality of candidate carriers is N, and N is a positive integer greater than or equal to 2. Measured values of CBRs of the N carriers may be separately represented as CBR1, BCR2, . . . , and CBRN. Assuming that a CBR of a carrier currently used by the terminal device is CBR1, if |CBR1−CBRk|>B is satisfied for any CBRk in the N CBRs, where B is a preset threshold, the terminal device is triggered to select the carrier. For example, the terminal device measures and filters the CBRs of the N carriers and selects a carrier having the smallest CBR as a to-be-used carrier from the N carriers based on the CBRs of the N carriers that are obtained after filtering. A first threshold B herein may be preconfigured in the terminal device or the network device, for example, agreed in a protocol; and the network device may indicate the first threshold B to the terminal device through the configuration information.

Further, optionally, in 430, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

If the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, carriers whose CBRs satisfy a condition are selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between the CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Further, optionally, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

If the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, carriers whose CBRs satisfy a condition are selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Otherwise, optionally, the selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier, or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the carrier from the carriers whose CBR is less than or equal to the second threshold after filtering.

There is another case in which the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold. In this case, optionally, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any carrier from the plurality of carriers as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

Method 2

Optionally, in 430, the selecting the carrier from the plurality of carriers based on the CBRs of the plurality of carries that are obtained after filtering includes: when a value of a resource reselection counter C_resel is equal to 0, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, a process of selecting the carrier does not rely on a ProbResourceKeep parameter, and instead, whether the carrier selection needs to be performed currently is determined based on the resource reselection counter C_resel. When the carrier selection needs to be performed, the carrier is selected based on the CBRs that are obtained after filtering processing, reducing carrier switching frequency and ensuring system stability.

Optionally, a corresponding C_resel is configured on each of the plurality of carriers, when the value of the C_resel is equal to 0, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when a value of a C_resel that corresponds to a carrier (the first carrier) used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In other words, the terminal device may configure an independent C_resel for a HARQ process on each carrier, and when the value of the C_resel corresponding to the carrier (first carrier) used for the current data transmission is equal to 0, the terminal device may be triggered to select the carrier.

Otherwise, optionally, when a same C_resel is configured on the plurality of carriers, where when the value of the C_resel is equal to 0, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the value of the same C_resel is equal to 0, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

To be specific, the terminal device may also configure the same C_resel for the HARQs of the plurality of carriers, and when the C_resel=0, the terminal device is triggered to select the carrier.

Method 3

Optionally, before 430, that is, before the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering, the method further includes: determining whether a difference between a CBR of a first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold when the value of the C_resel is equal to 0. The first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers.

In 430, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting the carrier from the plurality of carriers based on the CBRs of the plurality of carries that are obtained after filtering.

In this embodiment, whether the carrier needs to be selected currently is determined based on the resource C_resel, and whether the difference between the CBRs of the current carrier and another carrier satisfies a condition is determined when the carrier needs to be selected. When the difference between the CBRs satisfies the condition, the carrier is selected based on the CBRs that are obtained after filtering processing, further reducing carrier switching frequency and ensuring system stability.

Specifically, when the value of the C_resel is equal to 0, the terminal device is triggered to determine the difference between the CBRs. When the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the terminal device selects the carrier from a plurality of candidate carriers.

Further, optionally, in 430, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, carriers whose CBRs satisfy a condition are selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, in 430, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Further, optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, when the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, carriers whose CBRs satisfy a condition are selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between CBRs of the carriers that are obtained after filtering and the CBR of the first carrier that is obtained after filtering exceeds the first threshold.

Optionally, in 430, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Further, optionally, in 430, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the carrier from the carriers whose CBRs after filtering are less than or equal to the second threshold.

There is another case in which the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold. In this case, optionally, the selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any carrier from the plurality of carriers as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

Optionally, the method is performed by a terminal device, before the determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds a first threshold, the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by a network device, where the configuration information includes the first threshold.

Optionally, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

Optionally, a corresponding C_resel is configured on each of the plurality of carriers, where when a value of the C_resel is equal to 0, and the determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds a first threshold includes: when the value of the C_resel corresponding to the carrier (first carrier) used in current data transmission in the plurality of C resels configured on the plurality of carriers is equal to 0, determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

Optionally, when a same C_resel is configured on the plurality of carriers, where when the value of the C_resel is equal to 0, the determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds a first threshold includes: when the value of the same C_resel is equal to 0, determining whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

Method 4

Optionally, the method further includes: determining whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold, where the first carrier is a carrier used in current data transmission.

In 430, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the CBR of the first carrier that is obtained after filtering exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, when the CBR of the first carrier does not exceed the third threshold, no carrier may be selected, and the first carrier is still used.

Optionally, the plurality of candidate carriers include the first carrier.

Optionally, the plurality of candidate carriers do not include the first carrier.

In this embodiment, filtering processing is performed on measured results of the CBRs of the plurality of carriers, whether the carrier is selected is determined according to whether the CBR of the current carrier that is obtained after filtering exceeds the preset threshold, and when the CBR of the current carrier that is obtained after filtering is greater than the threshold, the carrier is selected from the plurality of carriers, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

Method 5

Optionally, the method further includes: determining, when a value of a C_resel is equal to 0, whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold, where the first carrier is a carrier used in current data transmission.

In 430, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the CBR of the first carrier that is obtained after filtering exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, when the CBR of the first carrier does not exceed the third threshold, no carrier may be selected, and the first carrier is still used.

Optionally, the plurality of candidate carriers include the first carrier.

Optionally, the plurality of candidate carriers do not include the first carrier.

In this embodiment, a carrier selection process does not depend on the ProbResourceKeep parameter, and instead is based on the resource reselection counter C_resel, when the C_resel=0, the terminal device is triggered to select the carrier, to perform filtering processing on the measured results of the CBRs of the plurality of carriers, whether the carrier is selected is determined according to whether the CBR of the current carrier that is obtained after filtering exceeds the preset threshold, and when the CBR of the current carrier that is obtained after filtering is greater than the threshold, the carrier is selected, thereby reducing system complexity while effectively selecting the carrier.

Optionally, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the third threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the third threshold.

Optionally, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the third threshold.

Optionally, each of the plurality of carriers is configured with a corresponding C_resel, where the determining, when a value of a C_resel is equal to 0, whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold includes: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determining whether the CBR of the first carrier that is obtained after filtering exceeds the third threshold.

Optionally, the plurality of carriers are configured with a same C_resel; and the determining, when a value of a C_resel is equal to 0, whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold includes: when a value of the same C_resel is equal to 0, determining whether the CBR of the first carrier that is obtained after filtering exceeds the third threshold.

It should be understood that the carrier selection method in the embodiments of this application may be applied to terminal devices using different transmission modes (for example, the transmission mode 3 or the transmission mode 4). When the terminal device uses the transmission mode 3, the network device may select a carrier based on the method and notify the terminal device of the carrier. When the terminal device uses the transmission mode 4, the terminal device may autonomously select a carrier by using the method. For a detailed carrier selection process of the network device, refer to the carrier selection process of the terminal device, and for brevity, details are not described herein again.

FIG. 5 is a schematic flowchart of a carrier selection method according to another embodiment of this application. The method shown in FIG. 5 may be performed by a communications device. The communications device includes a terminal device or a network device, the terminal device may be, for example, the terminal device 20 or the terminal device 30 shown in FIG. 2, and the network device may be, for example, the network device 10 shown in FIG. 1 or FIG. 2. The following provides a description by using the terminal device as an example, but the method described in this application may also be performed by the network device or the like. As shown in FIG. 5, the carrier selection method includes:

510: Obtain CBRs of a plurality of candidate carriers.

520: Determine whether a difference between a CBR of a first carrier and a CBR of a second carrier exceeds a first threshold.

The first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers.

530: If the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select a carrier from the plurality of carriers.

Specifically, the terminal device obtains a measurement result of the CBRs of the plurality of candidate carriers, and calculates a difference between the CBR of the first carrier used in current data transmission and a CBR of another carrier. When the difference between the CBR of the first carrier and the CBR of any other carrier exceeds the first threshold, the terminal device is triggered to select the carrier. The terminal device may select a to-be-used carrier from the plurality of carriers during carrier selection according to the CBRs of the plurality of carriers. If the selected to-be-used carrier is the same as the carrier currently used by the terminal device, carrier switching may not be performed; otherwise, carrier switching is performed.

For example, a quantity of the plurality of candidate carriers is N, and N is a positive integer greater than or equal to 2. Measured values of CBRs of the N carriers may be separately represented as CBR1, BCR2, . . . , and CBRN. Assuming that a CBR of a carrier currently used by the terminal device is CBR1, if |CBR1−CBRk|>B is satisfied for any CBRk in the N CBRs, where B is a preset threshold, the terminal device is triggered to select the carrier. For example, the terminal device measures the CBRs of the N carriers and selects a carrier having the smallest CBR as a to-be-used carrier from the N carriers based on the CBRs of the N carriers that are obtained.

The CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on each carrier.

Further, optionally, in 530, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes:

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, carriers whose CBRs satisfy a condition may be selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between the CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, the resource pool used by the terminal device on each carrier is a resource pool corresponding to a zone of the terminal device (that is, a geographical zone) in a plurality of resource pools, and there is a correspondence between the plurality of resource pools and a plurality of zones.

Specifically, a plurality of geographical zones may be divided, and there is a correspondence between the plurality of geographical zones and the plurality of resource pools. A resource pool used by the terminal device for data transmission on each carrier is a resource pool corresponding to a current geographical zone of the terminal device. When the terminal device uses the resource pool to perform data transmission with the network device, a CBR measured by the terminal device is a CBR of the resource pool. To be specific, the CBR measured by the terminal device is a CBR of a channel resource in the resource pool. When the terminal device is located in different geographical zones, resource pools used in each carrier may also be different.

A correspondence between the plurality of geographical zones and the plurality of resource pools may be represented, for example, by a mapping table or a formula, and this is not limited in the embodiment of this application. In addition, a geographical zone may correspond to one or more resource pools, a resource pool may also correspond to one or more geographical zones, or the plurality of geographical zones and the plurality of resource pools are in a one-to-one correspondence.

Optionally, when the method is performed by the terminal device, in 510, the obtaining CBRs of a plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, when the method is performed by the terminal device, in 510, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, when the method is performed by the terminal device, before 520, that is, before the determining whether a difference between a CBR of a first carrier and a CBR of a second carrier exceeds a first threshold, the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the first threshold.

Optionally, when the method is performed by the network device, in 510, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

Optionally, when the method is performed by the network device, the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

Optionally, in 520, the determining whether a difference between a CBR of a first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of C_resel is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

In this embodiment, the carrier selection process is irrelevant to a ProbResourceKeep parameter, that is, is independent of the ProbResourceKeep parameter. The terminal device determines, based on a C_resel, whether a carrier needs to be selected currently, when a carrier needs to be selected, determines whether a difference between CBRs of the current carrier and another carrier satisfies the condition, and when the difference between the CBRs satisfies the condition, selects a carrier based on the CBRs of the different carriers, thereby reducing carrier switching frequency and ensuring system stability.

Optionally, each of the plurality of carriers is configured with a corresponding C_resel, where the determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of a C_resel that corresponds to a carrier (the first carrier) used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

In other words, the terminal device may configure an independent C_resel for a HARQ process on each carrier, and when the C_resel corresponding to any carrier is equal to 0, the terminal device may be triggered to select the carrier.

Optionally, the plurality of carriers are configured with a same C_resel; and the determining, when a value of C_resel is equal to 0, whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold includes: when a value of the same C_resel is equal to 0, determining whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

To be specific, the terminal device may also configure the same C_resel for the HARQs of the plurality of carriers, and when the C_resel=0, the terminal device is triggered to select the carrier.

Optionally, in 530, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, selecting a carrier from the plurality of carriers.

Further, optionally, in 530, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for the preset duration, carriers whose CBRs satisfy a condition may be selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between the CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, in 530, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, selecting a carrier from the plurality of carriers.

Alternatively, optionally, in 530, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers includes:

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold.

There is another case in which if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold. In this case, optionally, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes:

if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting any carrier as a to-be-used carrier from the plurality of carriers.

if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting a carrier having the smallest CBR as a to-be-used carrier from the plurality of carriers.

Optionally, in 530, the selecting a carrier from the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

When the terminal device uses the transmission mode 3, the network device may select a carrier based on the method and notify the terminal device of the carrier. When the terminal device uses the transmission mode 4, the terminal device may autonomously select a carrier by using the method. For a detailed carrier selection process of the network device, refer to the carrier selection process of the terminal device, and for brevity, details are not described herein again.

FIG. 6 is a schematic flowchart of a carrier selection method according to still another embodiment of this application. The method shown in FIG. 6 may be performed by a communications device. The communications device includes a terminal device or a network device, the terminal device may be, for example, the terminal device 20 or the terminal device 30 shown in FIG. 2, and the network device may be, for example, the network device 10 shown in FIG. 1 or FIG. 2. The following provides a description by using the terminal device as an example, but the method described in this application may also be performed by the network device or the like. As shown in FIG. 6, the carrier selection method includes:

610: Obtain CBRs of a plurality of candidate carriers.

620: Select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when a value of a resource reselection counter C_resel is equal to 0.

Therefore, a process of selecting the carrier does not rely on a ProbResourceKeep parameter, and instead, whether the carrier selection needs to be performed currently is determined based on the resource reselection counter C_resel. That is, the terminal device is triggered to select the carrier when C_resel=0, thereby reducing system complexity while effectively selecting the carrier.

The CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on each carrier.

Further, optionally, the resource pool used by the terminal device on each carrier is a resource pool corresponding to a zone of the terminal device (that is, a geographical zone) in a plurality of resource pools, and there is a correspondence between the plurality of resource pools and a plurality of zones.

Specifically, a plurality of geographical zones may be divided, and there is a correspondence between the plurality of geographical zones and the plurality of resource pools. A resource pool used by the terminal device for data transmission on each carrier is a resource pool corresponding to a current geographical zone of the terminal device. When the terminal device uses the resource pool to perform data transmission with the network device, a CBR measured by the terminal device is a CBR of the resource pool. To be specific, the CBR measured by the terminal device is a CBR of a channel resource in the resource pool. When the terminal device is located in different geographical zones, resource pools used in each carrier may also be different.

A correspondence between the plurality of geographical zones and the plurality of resource pools may be represented, for example, by a mapping table or a formula, and this is not limited in the embodiment of this application. In addition, a geographical zone may correspond to one or more resource pools, a resource pool may also correspond to one or more geographical zones, or the plurality of geographical zones and the plurality of resource pools are in a one-to-one correspondence.

Optionally, when the method is performed by the terminal device, in 610, the obtaining CBRs of a plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Specifically, the terminal device may calculate the CBRs of the plurality of candidate carriers when the value of C_resel is equal to 0, and select the carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the method is performed by the terminal device, and in 610, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, when the method is performed by the network device, in 610, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

Specifically, when the value of the C_resel is equal to 0, the network device may select the carrier from the plurality of carriers according to the CBRs of the plurality of carriers reported by the terminal device.

Optionally, each of the plurality of carriers is configured with a corresponding C_resel. In this case, in 620, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when a value of a C_resel is equal to 0 includes: when a value of a C_resel that corresponds to a carrier (the first carrier) used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, selecting the carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the plurality of carriers are configured with a same C_resel; and In this case, in 620, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when a value of a C_resel is equal to 0 includes: when a value of the same C_resel is equal to 0, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

To be specific, an independent resource reselection counter C_resel may be configured for a HARQ process of each of the plurality of candidate carriers, and when the value of C_resel corresponding to the carrier (the first carrier) used in the current data transmission is equal to 0, the terminal device is triggered to select the carrier; or a same C_resel is configured for HARQ processes of all carriers, and when the C_resel is equal to 0, the terminal device is triggered to select the carrier.

Optionally, in 620, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the method further includes: when a value of a C_resel is equal to 0, determining whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and

In 620, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, when the CBR of the first carrier does not exceed the third threshold, no carrier may be selected, and the first carrier is still used.

Optionally, the plurality of candidate carriers include the first carrier.

Optionally, the plurality of candidate carriers do not include the first carrier.

Optionally, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the third threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the third threshold.

Optionally, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the third threshold.

Therefore, a carrier selection process does not depend on the ProbResourceKeep parameter, and instead is based on the resource reselection counter C_resel, when the C_resel=0, the terminal device is triggered to select the carrier, so that whether the carrier is selected is determined according to whether the CBR of the current carrier exceeds the preset threshold, and when the CBR of the current carrier is greater than the threshold, the carrier is selected, thereby reducing system complexity while effectively selecting the carrier.

When the terminal device uses the transmission mode 3, the network device may select a carrier based on the method and notify the terminal device of the carrier. When the terminal device uses the transmission mode 4, the terminal device may autonomously select a carrier by using the method. For details of the carrier selection process of the network device, refer to related descriptions of the terminal device, and for brevity, details are not described herein again.

FIG. 7 is a schematic flowchart of a carrier selection method according to still another embodiment of this application. The method shown in FIG. 7 may be performed by a communications device. The communications device includes a terminal device or a network device, the terminal device may be, for example, the terminal device 20 or the terminal device 30 shown in FIG. 2, and the network device may be, for example, the network device 10 shown in FIG. 1 or FIG. 2. The following provides a description by using the terminal device as an example, but the method described in this application may also be performed by the network device or the like. As shown in FIG. 7, the carrier selection method includes:

710: Obtain CBRs of a plurality of candidate carriers.

720: When a terminal device moves from a first zone to a second zone, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Further, optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone (that is, a geographical zone) of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

Specifically, a plurality of geographical zones may be divided, and there is a correspondence between the plurality of geographical zones and the plurality of resource pools. A resource pool used by the terminal device for data transmission on each carrier is a resource pool corresponding to a current geographical zone of the terminal device. When the terminal device uses the resource pool to perform data transmission with the network device, a CBR measured by the terminal device is a CBR of the resource pool. To be specific, the CBR measured by the terminal device is a CBR of a channel resource in the resource pool. When the terminal device is located in different geographical zones, resource pools used in each carrier may also be different.

A correspondence between the plurality of geographical zones and the plurality of resource pools may be represented, for example, by a mapping table or a formula, and this is not limited in the embodiment of this application. In addition, a geographical zone may correspond to one or more resource pools, a resource pool may also correspond to one or more geographical zones, or the plurality of geographical zones and the plurality of resource pools are in a one-to-one correspondence.

For example, the network device may divide an entire geographical zone into a plurality of zones, and configure a corresponding resource pool for each zone. The terminal device performs data transmission by using a corresponding resource pool of the zone of the terminal device. Different zones have respective zone identifiers (zone_id), and a zone_id of each zone may be calculated by using the following the formula:

x ₁=Floor(x/L)Mod Nx;

y ₁=Floor(y/W)Mod Ny; and

zone_id=y1×Nx+x1,

where L is a length of each zone, W is a width of each zone, Nx is a total quantity of zones in a longitude direction, Ny is a total quantity of zones in a latitude direction, x is a distance (in a unit of meter) of a current location of the terminal device from a location (0,0) in the longitude direction, y is a distance (in a unit of meter) of the current location of the terminal device from the location (0,0) in the latitude direction, Floor indicates rounding down to the nearest integer, and Mod indicates a modulo operation.

Because the CBR of each carrier may rapidly change with a position change of the terminal device or change as the time changes, whether to select the carrier is determined based on a location movement of the terminal device, and the carrier is selected only when a geographical zone of the terminal device changes, thereby reducing carrier switching frequency and ensuring system stability.

Optionally, if the method is performed by the terminal device, in 710, the obtaining CBRs of a plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, if the method is performed by the terminal device, in 710, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, if the method is performed by the network device, in 710, the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

Optionally, in 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Five specific carrier selection methods used by the terminal device or the network device are further provided in the embodiments of this application based on the above descriptions. The following provides a description by using the terminal device as an example.

Method 1

Optionally, in 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when a terminal device moves from a first zone to a second zone includes:

when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

In this embodiment, when the geographical zone of the terminal device changes, whether to select the carrier is determined according to the difference between the CBRs of the current carrier and another carrier, and when the difference between the CBRs satisfies the condition, the carrier is selected, thereby further reducing carrier switching frequency and ensuring system stability.

Further, optionally, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes:

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, carriers whose CBRs satisfy a condition may be selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between the CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, when the method is performed by the terminal device, before the determining whether a difference between a CBR of a first carrier and a CBR of a second carrier exceeds a first threshold, the method further includes: obtaining, by the terminal device, the first threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the first threshold.

Optionally, when the method is performed by the network device, the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the first threshold.

For example, a quantity of the plurality of candidate carriers is N, and N is a positive integer greater than or equal to 2. Measured values of CBRs of the N carriers may be separately represented as CBR1, BCR2, . . . , and CBRN. Assuming that a CBR of a carrier currently used by the terminal device is CBR1, if the terminal device moves from the first zone to the second zone, if |CBR1−CBRk>B is satisfied for any CBRk in the N CBRs, where B is a preset threshold, the terminal device is triggered to select the carrier. For example, the terminal device measures the CBRs of the N carriers and selects a carrier having the smallest CBR as a to-be-used carrier from the N carriers based on the CBRs of the N carriers that are obtained.

Optionally, in 720, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

To be specific, when the terminal device moves from the first zone to the second zone, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for the preset duration, a carrier is selected, for example, a carrier having a smallest CBR is selected as the to-be-used carrier.

Further, optionally, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, selecting, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

To be specific, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for the preset duration, carriers whose CBRs satisfy a condition may be selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between the CBRs of the carriers and the CBR of the first carrier exceeds the first threshold.

Optionally, in 720, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

To be specific, when the terminal device moves from the first zone to the second zone, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than the second threshold, a carrier is selected, for example, a carrier having a smallest CBR is selected as the to-be-used carrier.

Alternatively, optionally, in 720, if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes:

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold.

There is another case in which the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold when the terminal device moves from the first zone to the second zone. In this case, optionally, the method further includes:

when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting any carrier as a to-be-used carrier from the plurality of carriers; or

if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, selecting a carrier having the smallest CBR as a to-be-used carrier from the plurality of carriers.

Method 2

Optionally, before 720, that is, before the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and

in 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, when a geographical zone of the terminal device changes, filtering processing is performed on measured results of the CBRs of the plurality of carriers, and the carrier is selected from the plurality of filtered carriers according to the CBRs of the plurality of carriers that are obtained after filtering processing, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

Optionally, the performing filtering processing on the CBRs of the plurality of carriers includes: performing smooth filtering on the CBRs of the plurality of carriers.

A smooth filtering method is not limited in the embodiments of this application.

For example, the smooth filtering method may be CBR_new=a×CBR_old±(1−a)×CBR_current.

where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

It can be learnt that filtering a measured CBR by using a proper filtering method avoids a frequent carrier switching caused by a rapid change of the CBR.

Optionally, in 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR obtained after filtering as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Method 3

Optionally, before 720, that is, before the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and

In 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when a terminal device moves from a first zone to a second zone includes:

when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

In this embodiment, when the geographical zone of the terminal device changes, whether to select the carrier is determined according to the difference between the CBRs of the current carrier and another carrier, and when the difference between the CBRs satisfies the condition, filtering processing is performed on the measurement result of the CBRs of the plurality of carriers, and the carrier is selected from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering processing, thereby further reducing carrier switching frequency and ensuring system stability while the carrier is selected.

Further, optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

A filtering method is not limited in the embodiments of this application, for example, smooth filtering may be performed on the CBRs of the plurality of carriers.

Optionally, a CBR of each of the plurality of carriers that is obtained after smooth filtering may be: CBR_new=a×CBR_old+(1−a)×CBR_current,

where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

Optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: selecting, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

To be specific, when the terminal device moves from the first zone to the second zone, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, the carrier is selected according to the CBRs of the plurality of carriers that are obtained after filtering, for example, the carrier having the smallest CBR after filtering is selected as the to-be-used carrier.

Further, optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, selecting, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

To be specific, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, carriers whose CBRs satisfy a condition may be selected from the plurality of carriers, and the to-be-used carrier is selected from the carriers satisfying the condition. The condition herein means that the difference between the CBRs of the carriers that are obtained after filtering and the CBR of the first carrier that is obtained after filtering exceeds the first threshold.

Optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

To be specific, when the terminal device moves from the first zone to the second zone, only if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is greater than the second threshold, the carrier is selected according to the CBRs of the plurality of carriers that are obtained after filtering, for example, the carrier having the smallest CBR after filtering is selected as the to-be-used carrier.

Further, optionally, if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering includes:

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, selecting a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

There is another case in which if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold. In this case, optionally, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when the terminal device moves from the first zone to the second zone includes:

when the location of the terminal device moves from the first zone to the second zone, determining whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

Method 4

Optionally, in 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers when a terminal device moves from a first zone to a second zone includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, when the CBR of the first carrier does not exceed the third threshold, no carrier may be selected, and the first carrier is still used.

Optionally, the plurality of candidate carriers include the first carrier.

Optionally, the plurality of candidate carriers do not include the first carrier.

Optionally, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the third threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the third threshold.

Optionally, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the third threshold.

In this embodiment, when the geographical zone of the terminal device changes, whether the carrier is selected is determined according to whether the CBR of the current carrier exceeds the preset threshold, and when the CBR of the current carrier is greater than the threshold, the carrier is selected from the plurality of candidate carriers, thereby further reducing carrier switching frequency and ensuring system stability while the carrier is selected.

Method 5

Optionally, the method further includes: performing filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering.

In 720, the selecting, when a location of a terminal device moves from a first zone to a second zone, a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: when the location of the terminal device moves from the first zone to the second zone, determining whether a CBR of a first carrier that is obtained after filtering exceeds a third threshold, where the first carrier is a carrier used in current data transmission; and if the CBR of the first carrier that is obtained after filtering exceeds the third threshold, selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, when the CBR of the first carrier does not exceed the third threshold, no carrier may be selected, and the first carrier is still used.

Optionally, the plurality of candidate carriers include the first carrier.

Optionally, the plurality of candidate carriers do not include the first carrier.

Optionally, the method is performed by the terminal device, and the method further includes: obtaining, by the terminal device, the third threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the third threshold.

Optionally, the method is performed by the network device, and the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the third threshold.

Optionally, the performing filtering processing on the CBRs of the plurality of carriers includes: performing smooth filtering on the CBRs of the plurality of carriers.

Optionally, a CBR of each of the plurality of carriers that is obtained after smooth filtering is:

CBR_new=a×CBR_old±(1−a)×CBR_current,

where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

In this embodiment, when the geographical zone of the terminal device changes, filtering processing is performed on the measurement result of the CBRs of the plurality of carriers, whether to select the carrier is determined according to whether the CBR of the current carrier that is obtained after filtering exceeds the preset threshold, and when the CBR of the current carrier that is obtained after filtering is greater than the threshold, the carrier is select, thereby reducing system complexity while effectively selecting the carrier.

Optionally, in 720, the selecting a carrier from the plurality of carriers according to the CBRs of the plurality of carriers includes: selecting a carrier having a smallest CBR obtained after filtering as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

It should be understood that the carrier selection method in the embodiments of this application may be applied to terminal devices using different transmission modes (for example, the transmission mode 3 or the transmission mode 4). When the terminal device uses the transmission mode 3, the network device may select a carrier based on the method and notify the terminal device of the carrier. When the terminal device uses the transmission mode 4, the terminal device may autonomously select a carrier by using the method. For a detailed carrier selection process of the network device, refer to the carrier selection process of the terminal device, and for brevity, details are not described herein again.

FIG. 8 is a schematic flowchart of a carrier selection method according to still another embodiment of this application. The method shown in FIG. 8 may be performed by a communications device. The communications device includes a terminal device or a network device, the terminal device may be, for example, the terminal device 20 or the terminal device 30 shown in FIG. 2, and the network device may be, for example, the network device 10 shown in FIG. 1 or FIG. 2. The following provides a description by using the terminal device as an example, but the method described in this application may also be performed by the network device or the like. As shown in FIG. 8, the carrier selection method includes:

810: Obtain CBRs of a plurality of candidate carriers.

820: Determine whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission.

830: If the CBR of the first carrier exceeds the third threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Specifically, the terminal device obtains a measurement result of the CBRs of the plurality of candidate carriers, and calculates the CBR of the first carrier used in current data transmission. When the CBR of the first carrier is greater than the third threshold, the terminal device is triggered to select the carrier. The terminal device may select a to-be-used carrier from the plurality of carriers during carrier selection according to the CBRs of the plurality of carriers. During carrier selection, the carrier may be selected from the plurality of carriers including the first carrier, or the carrier may be selected from the plurality of carriers not including the first carrier.

Optionally, when the CBR of the first carrier does not exceed the third threshold, no carrier may be selected, and the first carrier is still used.

Optionally, the plurality of candidate carriers include the first carrier.

Optionally, the plurality of candidate carriers do not include the first carrier.

Therefore, the CBR of the current carrier is compared with the third threshold, and the carrier is selected when the CBR of the first carrier is greater than the third threshold, thereby reducing carrier switching frequency and ensuring system stability.

For example, the CBR of the carrier currently used by the terminal device is CBR1. If CBR1 is greater than the third threshold, the terminal device is triggered to select the carrier, for example, the terminal device measures the CBRs of the plurality of candidate carriers, and selects the carrier having the smallest CBR as the to-be-used carrier from the plurality of carriers according to the obtained CBRs of the plurality of carriers, where the plurality of candidate carriers may include the first carrier or may not include the first carrier.

The CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on each carrier.

Further, optionally, the resource pool used by the terminal device on each carrier is a resource pool corresponding to a zone of the terminal device (that is, a geographical zone) in a plurality of resource pools, and there is a correspondence between the plurality of resource pools and a plurality of zones.

Specifically, a plurality of geographical zones may be divided, and there is a correspondence between the plurality of geographical zones and the plurality of resource pools. A resource pool used by the terminal device for data transmission on each carrier is a resource pool corresponding to a current geographical zone of the terminal device. When the terminal device uses the resource pool to perform data transmission with the network device, a CBR measured by the terminal device is a CBR of the resource pool. To be specific, the CBR measured by the terminal device is a CBR of a channel resource in the resource pool. When the terminal device is located in different geographical zones, resource pools used in each carrier may also be different.

A correspondence between the plurality of geographical zones and the plurality of resource pools may be represented, for example, by a mapping table or a formula, and this is not limited in the embodiment of this application. In addition, a geographical zone may correspond to one or more resource pools, a resource pool may also correspond to one or more geographical zones, or the plurality of geographical zones and the plurality of resource pools are in a one-to-one correspondence.

Optionally, in 830, the selecting a carrier from the plurality of carriers includes: selecting a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the method is performed by the terminal device, and the obtaining CBRs of a plurality of candidate carriers includes: measuring, by the terminal device, the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, the method is performed by the terminal device, and the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the terminal device, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, the method further includes: obtaining, by the terminal device, the third threshold preconfigured in the terminal device; or receiving, by the terminal device, configuration information sent by the network device, where the configuration information includes the third threshold.

Optionally, the method is performed by the network device, and the obtaining CBRs of a plurality of candidate carriers includes: receiving, by the network device, the CBRs of the plurality of carriers that are reported by the terminal device.

Optionally, the method further includes: sending, by the network device, configuration information to the terminal device, where the configuration information includes the third threshold.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

When the terminal device uses the transmission mode 3, the network device may select a carrier based on the method and notify the terminal device of the carrier. When the terminal device uses the transmission mode 4, the terminal device may autonomously select a carrier by using the method. For details of the carrier selection process of the network device, refer to related descriptions of the terminal device, and for brevity, details are not described herein again.

It should be understood that for descriptions of the method 400 to the method 800, refer to each other, methods in the embodiments of the method 400 to the method 800 may be combined, and for brevity, details are not described herein again.

It should be further understood that in the embodiments of this application, serial numbers of the foregoing processes do not indicate an execution sequence, and an execution sequence of the processes should depend on functions and internal logic thereof, and constitutes no limitation on an implementation process of the embodiments of this application.

The foregoing describes the carrier selection method in the embodiments of this application in detail, the following describes an apparatus according to the embodiments of this application with reference to FIG. 9 to FIG. 15, and the technical features described in the method embodiment are applicable to the following apparatus embodiment.

FIG. 9 is a schematic block diagram of a communications device 900 according to an embodiment of this application. As shown in FIG. 9, the communications device 900 includes an obtaining unit 910, a filtering unit 920, and a carrier selection unit 930.

The obtaining unit 910 is configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers.

The filtering unit 920 is configured to perform filtering processing on the CBRs of the plurality of carriers obtained by the obtaining unit 910, to obtain CBRs of the plurality of carriers after filtering.

The carrier selection unit 930 is configured to select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering by the filtering unit 920.

Therefore, filtering processing is performed on measured results of the CBRs of the plurality of carriers, and the carrier is selected from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering processing, thereby reducing carrier switching frequency and ensuring system stability while the carrier is selected.

Optionally, the filtering unit 920 is specifically configured to perform smooth filtering on the CBRs of the plurality of carriers.

Optionally, a CBR of each of the plurality of carriers that is obtained after smooth filtering is: CBR_new=a×CBR_old+(1−a)×CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

Optionally, the communications device further includes a determining unit, configured to: determine whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit 910 is further configured to: obtains the first threshold preconfigured in the terminal device; or receive, by using the transceiver unit, configuration information sent by the network device, where the configuration information includes the first threshold.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the transceiver unit is configured to: send configuration information to the terminal device, where the configuration information includes the first threshold.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, select, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, select a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

Optionally, the communications device further includes a determining unit, where the determining unit is configured to: determine whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

The carrier selection unit is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select any one of the plurality of carriers as a to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

Optionally, the carrier selection unit 930 is specifically configured to: when a value of a resource reselection counter C_resel is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, a corresponding C_resel is configured for each of the plurality of carriers, where the carrier selection unit 930 is specifically configured to: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, a same C_resel is configured for the plurality of carriers, where the carrier selection unit 930 is specifically configured to: when a value of the same C_resel is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the communications device further includes a determining unit, where the determining unit is specifically configured to: when a value of C_resel is equal to 0, determine whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

The carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit 910 is further configured to: obtain the first threshold preconfigured in the terminal device; or receive, by using the transceiver unit, configuration information sent by the network device, where the configuration information includes the first threshold.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the transceiver unit is configured to: send configuration information to the terminal device, where the configuration information includes the first threshold.

Optionally, a corresponding C_resel is configured for each of the plurality of carriers, where the determining unit is specifically configured to: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determine whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

Optionally, a same C_resel is configured for the plurality of carriers, where the determining unit is specifically configured to: when a value of the same C_resel is equal to 0, determine whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is greater than a second threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, select a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

Optionally, the communications device further includes a determining unit, where the determining unit is configured to: determine whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

Optionally, the carrier selection unit 930 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select any one of the plurality of carriers as a to-be-used carrier; or

if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers.

Optionally, the carrier selection unit 930 is specifically configured to: select a carrier having a smallest CBR obtained after filtering as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the communications device is a terminal device, and the obtaining unit 910 is specifically configured to: measure the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the terminal device further includes a transceiver unit, where the obtaining unit 910 is specifically configured to: receive, by using the transceiver unit, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, the communications device is a network device, and the obtaining unit 910 is specifically configured to: receive, by using the transceiver unit, the CBRs of the plurality of carriers that are reported by the terminal device.

Optionally, the carrier selection process is irrelevant to a resource keep probability ProbResourceKeep parameter.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

It should be understood that the communications device 900 may perform the corresponding operations of the method 400 performed by the communications device in the foregoing method embodiments, and for brevity, details are not described herein again.

FIG. 10 is a schematic block diagram of a communications device 1000 according to an embodiment of this application. As shown in FIG. 10, the communications device 1000 includes an obtaining unit 1010, a determining unit 1020, and a carrier selection unit 1030.

The obtaining unit 1010 is configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers;

The determining unit 1020 is configured to determine whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

The carrier selection unit 1030 is configured to: when the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select a carrier from the plurality of carriers obtained by the obtaining unit 1010.

Therefore, whether a carrier selection is performed is determined by determining a difference between CBRs between a current carrier and another carrier, and the carrier is selected only when the difference between the CBRs satisfies a condition, reducing carrier switching frequency and ensuring system stability.

Optionally, the carrier selection unit 1030 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

Optionally, the carrier selection unit 1030 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1030 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

Optionally, the carrier selection unit 1030 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1030 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, select the first carrier as the to-be-used carrier; or

if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, select a carrier from carriers whose CBRs are less than or equal to the second threshold.

Optionally, the carrier selection unit 1030 is further configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, select any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, select a carrier whose CBR obtained after filtering is the smallest as a to-be-used carrier from the plurality of carriers.

Optionally, the determining unit 1020 is specifically configured to: when a value of a resource reselection counter C_resel is equal to 0, determine whether the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold.

Optionally, a corresponding C_resel is configured for each of the plurality of carriers, where the determining unit 1020 is specifically configured to: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, determine whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

Optionally, a same C_resel is configured for the plurality of carriers, where the determining unit 1020 is specifically configured to: when a value of the same C_resel is equal to 0, determine whether the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold.

Optionally, the carrier selection unit 1030 is specifically configured to: select a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the obtaining unit 1010 is specifically configured to: measure the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit 1010 is specifically configured to: receive, by using the transceiver unit, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, the terminal device includes a transceiver unit, where the obtaining unit 1010 is specifically configured to: obtain the first threshold preconfigured in the terminal device; or receive, by using the transceiver unit, configuration information sent by the network device, where the configuration information includes the first threshold.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the obtaining unit 1010 is specifically configured to: receive, by using the transceiver unit, the CBRs of the plurality of carriers that are reported by the terminal device.

Optionally, the transceiver unit is further configured to: send configuration information to the terminal device, where the configuration information includes the first threshold.

Optionally, the carrier selection process is irrelevant to a resource keep probability ProbResourceKeep parameter.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

It should be understood that the communications device 1000 may perform the corresponding operations of the method 500 performed by the communications device in the foregoing method embodiments, and for brevity, details are not described herein again.

FIG. 11 is a schematic block diagram of a communications device 1100 according to an embodiment of this application. As shown in FIG. 11, the communications device 1100 includes an obtaining unit 1110 and a carrier selection unit 1120.

The obtaining unit 1110 is configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers; and

The carrier selection unit 1120 is configured to: when a value of a resource reselection counter C_resel is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained by the obtaining unit.

Therefore, a process of selecting the carrier does not rely on a probability resource keep ProbResourceKeep parameter, and instead, whether the carrier selection needs to be performed currently is determined based on the resource reselection counter C_resel, implementing effective carrier selection and reducing system complexity.

Optionally, a corresponding C_resel is configured for each of the plurality of carriers, where the carrier selection unit 1120 is specifically configured to: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in the plurality of C_resel configured for the plurality of carriers is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, a same C_resel is configured for the plurality of carriers, where the carrier selection unit 1120 is specifically configured to: when a value of the same C_resel is equal to 0, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1120 is specifically configured to: select a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the obtaining unit 1110 is specifically configured to: measure the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit is specifically configured to: receive, by using the transceiver unit, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the obtaining unit 1110 is specifically configured to: receive, by using the transceiver unit, the CBRs of the plurality of carriers reported by the terminal device.

Optionally, the carrier selection process is irrelevant to a resource keep probability ProbResourceKeep parameter.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

It should be understood that the communications device 1100 may perform the corresponding operations of the method 600 performed by the communications device in the foregoing method embodiments, and for brevity, details are not described herein again.

FIG. 12 is a schematic block diagram of a communications device 1200 according to an embodiment of this application. As shown in FIG. 12, the communications device 1200 includes an obtaining unit 1210 and a carrier selection unit 1220.

The obtaining unit 1210 is configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers.

The carrier selection unit 1220 is configured to: when a terminal device moves from a first zone to a second zone, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers obtained by the obtaining unit 1210.

Therefore, whether to select the carrier is determined based on the location movement of the terminal device, and the carrier is selected only when the geographical zone of the terminal device changes, thereby reducing carrier switching frequency and ensuring system stability.

Optionally, the carrier selection unit 1220 is specifically configured to: when the location of the terminal device moves from the first zone to the second zone, determine whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, select, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for preset duration, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

The carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold for the preset duration, select, according to the CBRs of the plurality of carriers, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier exceeds the first threshold, and the CBR of the first carrier is less than or equal to the second threshold, select a carrier from carriers whose CBRs are less than or equal to the second threshold.

Optionally, the communications device further includes a determining unit, where the determining unit is configured to: when the location of the terminal device moves from the first zone to the second zone, determine whether a difference between the CBR of the first carrier and a CBR of a second carrier exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and

The carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, select any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier and the CBR of the second carrier does not exceed the first threshold, select a carrier having the smallest CBR as a to-be-used carrier from the plurality of carriers.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit 1210 is specifically configured to: obtain the first threshold preconfigured in the terminal device; or receive, by using the transceiver unit, configuration information sent by the network device, where the configuration information includes the first threshold.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the obtaining unit 1210 is specifically configured to: send configuration information to the terminal device by using the transceiver unit, where the configuration information includes the first threshold.

Optionally, the carrier selection unit 1220 is specifically configured to: select a carrier having a smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the communications device further includes a filtering unit, where the filtering unit is configured to: perform filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and the carrier selection unit 1220 is specifically configured to: when a location of a terminal device moves from a first zone to a second zone, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the filtering unit is specifically configured to perform smooth filtering on the CBRs of the plurality of carriers.

Optionally, a CBR of each of the plurality of carriers that is obtained after smooth filtering is: CBR_new=a×CBR_old±(1−a) x CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

Optionally, the communications device further includes a filtering unit, where the filtering unit is configured to: perform filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and

The carrier selection unit is specifically configured to: when the location of the terminal device moves from the first zone to the second zone, determine whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, select, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

Optionally, the filtering unit is specifically configured to perform smooth filtering on the CBRs of the plurality of carriers.

Optionally, a CBR of each of the plurality of carriers that is obtained after smooth filtering is: CBR_new=a×CBR_old+(1−a) x CBR_current, where CBR_new is a CBR of each carrier that is obtained after filtering, CBR_current is a CBR of each carrier that is obtained before filtering, CBR_old is a CBR of each carrier that is obtained after filtering during previous carrier selection, and a is a filtering coefficient and 0≤a≤1.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for preset duration, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold for the preset duration, select, according to the CBRs of the plurality of carriers that are obtained after filtering, a carrier as a to-be-used carrier from carriers having CBRs whose differences from the CBR of the first carrier exceed the first threshold after filtering.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier is greater than a second threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the carrier selection unit 1220 is specifically configured to: if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering exceeds the first threshold, and the CBR of the first carrier that is obtained after filtering is less than or equal to the second threshold, select a carrier from carriers whose CBRs are less than or equal to the second threshold after filtering.

Optionally, the communications device further includes a filtering unit, where the filtering unit is configured to: perform filtering processing on the CBRs of the plurality of carriers, to obtain CBRs of the plurality of carriers after filtering; and

The carrier selection unit 1220 is specifically configured to: when the location of the terminal device moves from the first zone to the second zone, determine whether a difference between the CBR of the first carrier that is obtained after filtering and a CBR of a second carrier that is obtained after filtering exceeds a first threshold, where the first carrier is a carrier used in current data transmission, and the second carrier is any carrier other than the first carrier in the plurality of carriers; and if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, select the first carrier as the to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting any one of the plurality of carriers as a to-be-used carrier; or if the difference between the CBR of the first carrier that is obtained after filtering and the CBR of the second carrier that is obtained after filtering does not exceed the first threshold, selecting a carrier having the smallest CBR after filtering as a to-be-used carrier from the plurality of carriers. Optionally, the carrier selection unit 1220 is specifically configured to: select a carrier having a smallest CBR obtained after filtering as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers that are obtained after filtering.

Optionally, the communications device is a terminal device, and the obtaining unit 1210 is configured to: measure the CBRs of the plurality of carriers, to obtain the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit 1210 is specifically configured to: receive, by using the transceiver unit, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the obtaining unit 1210 is specifically configured to: receive, by using the transceiver unit, the CBRs of the plurality of carriers reported by the terminal device.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

It should be understood that the communications device 1200 may perform the corresponding operations of the method 700 performed by the communications device in the foregoing method embodiments, and for brevity, details are not described herein again.

FIG. 13 is a schematic block diagram of a communications device 1300 according to an embodiment of this application. As shown in FIG. 13, the communications device 1300 includes an obtaining unit 1310, a determining unit 1320, and a carrier selection unit 1330.

The obtaining unit 1310 is configured to obtain channel busy ratios (CBR) of a plurality of candidate carriers.

The determining unit 1320 is configured to determine whether a CBR of a first carrier exceeds a third threshold, where the first carrier is a carrier used in current data transmission.

The carrier selection unit 1330 is configured to: when the CBR of the first carrier exceeds the third threshold, select a carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Therefore, the CBR of the current carrier is compared with the third threshold, and the carrier is selected when the CBR of the first carrier is greater than the third threshold, thereby reducing carrier switching frequency and ensuring system stability.

Optionally, the plurality of carriers include the first carrier.

Optionally, the plurality of carriers do not include the first carrier.

Optionally, the carrier selection unit 1330 is specifically configured to: select a carrier having the smallest CBR as the to-be-used carrier from the plurality of carriers according to the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the obtaining unit 1310 is specifically configured to: measure the CBRs of the plurality of carriers to obtain the CBRs of the plurality of carriers.

Optionally, the communications device is a terminal device, and the terminal device includes a transceiver unit, where the obtaining unit 1310 is specifically configured to: receive, by using the transceiver unit, a broadcast message sent by the network device, where the broadcast message carries the CBRs of the plurality of candidate carriers.

Optionally, the communications device is a terminal device, and the obtaining unit 1310 is further configured to: obtain the third threshold preconfigured in the terminal device; or receive, by using the transceiver unit, configuration information sent by the network device, where the configuration information includes the third threshold.

Optionally, the communications device is a network device, and the network device includes a transceiver unit, where the obtaining unit 1310 is specifically configured to: receive, by using the transceiver unit, the CBRs of the plurality of carriers reported by the terminal device.

Optionally, the communications device is a network device, and the transceiver unit is further configured to: send configuration information to the terminal device, where the configuration information includes the third threshold.

Optionally, a CBR of each of the plurality of carriers is a CBR of a resource pool used by the terminal device on the carrier.

Optionally, the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of the terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.

It should be understood that the communications device 1300 may perform the corresponding operations of the method 800 performed by the communications device in the foregoing method embodiments, and for brevity, details are not described herein again.

FIG. 14 is a schematic structural diagram of a communications device 1400 according to an embodiment of this application. As shown in FIG. 14, the communications device includes a processor 1410, a transceiver 1420, and a memory 1430, where the processor 1410, the transceiver 1420, and the memory 1430 communicate through an internal connection path. The memory 1430 is configured to store an instruction, and the processor 1410 is configured to execute the instruction stored in the memory 1430, to control the transceiver 1420 to receive a signal or send a signal.

Optionally, the processor 1410 may invoke program code stored in the memory 1430, to perform the corresponding operations of the method 400 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, the processor 1410 may invoke program code stored in the memory 1430, to perform the corresponding operations of the method 500 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, the processor 1410 may invoke program code stored in the memory 1430, to perform the corresponding operations of the method 600 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, the processor 1410 may invoke program code stored in the memory 1430, to perform the corresponding operations of the method 700 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, the processor 1410 may invoke program code stored in the memory 1430, to perform the corresponding operations of the method 800 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

It should be understood that the processor in the embodiments of this application may be an integrated circuit chip and has a signal processing capability. In an implementation process, steps in the foregoing method embodiments can be implemented by using a hardware integrated logical circuit in the processor, or by using instructions in a form of software. The processor may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logical device, a discrete gate or transistor logic device, or a discrete hardware component. It may implement or perform the methods, the steps, and logical block diagrams that are disclosed in the embodiments of this application. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like. Steps of the methods disclosed with reference to the embodiments of this application may be directly performed and accomplished by using a hardware decoding processor, or may be performed and accomplished by using a combination of hardware and software modules in the decoding processor. A software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or the like. The storage medium is located in the memory, and a processor reads information in the memory and completes the steps in the foregoing methods in combination with hardware thereof.

It may be understood that the memory in the embodiments of this application may be a volatile memory or a nonvolatile memory, or may include both of a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), used as an external cache. Through example but not limitative description, many forms of RAMs may be used, for example, a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DR RAM). It should be noted that the memory of the systems and methods described in this specification includes but is not limited to these and any memory of another proper type.

FIG. 15 is a schematic structural diagram of a chip according to an embodiment of this application. The chip 1500 in FIG. 15 includes an input interface 1501, an output interface 1502, at least one processor 1503, and a memory 1504. The input interface 1501, the output interface 1502, the processor 1503, and the memory 1504 are connected through an internal connection path. The processor 1503 is configured to execute code in the memory 1504.

Optionally, when the code is executed, the processor 1503 may perform the method 400 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, when the code is executed, the processor 1503 may perform the method 500 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, when the code is executed, the processor 1503 may perform the method 600 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, when the code is executed, the processor 1503 may perform the method 700 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

Optionally, when the code is executed, the processor 1503 may perform the method 800 performed by the communications device in the foregoing method embodiment, and for brevity, details are not described herein again.

A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.

A person skilled in the art may clearly learn that for ease of convenient and concise descriptions, for specific working processes of the system, apparatus, and unit described above, refer to corresponding processes in the method embodiment, and details are not described herein again.

In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

In addition, functional units in the embodiments of this application may be integrated into one monitoring unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

When the function is implemented in the form of a software functional unit and sold or used as an independent product, the function may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims. 

What is claimed is:
 1. A carrier selection method comprising: obtaining channel busy ratios (CBRs) of a plurality of candidate carriers; and when a value of a resource reselection counter C_resel is equal to 0, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 2. The method according to claim 1 wherein: each of the plurality of candidate carriers is configured with a corresponding C_resel; and wherein selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in a plurality of C_resel configured for the plurality of candidate carriers is equal to 0, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 3. The method according to claim 1 further comprising: when a value of a C_resel is equal to 0, determining whether a CBR of a first carrier exceeds a third threshold, wherein the first carrier is a carrier used in current data transmission; and selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises, if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 4. The method according to claim 3 wherein the plurality of candidate carriers comprise the first carrier.
 5. The method according to claim 1 wherein selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises selecting a carrier having a smallest CBR as a to-be-used carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 6. The method according to claim 1 wherein the method is performed by a terminal device, and obtaining CBRs of the plurality of candidate carriers comprises measuring, by the terminal device, the CBRs of the plurality of candidate carriers, to obtain the CBRs of the plurality of candidate carriers.
 7. The method according to claim 6 wherein a CBR of each of the plurality of candidate carriers is a CBR of a resource pool used by the terminal device on the carrier.
 8. The method according to claim 7 wherein the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of a terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones.
 9. A communications device, wherein the communications device comprises: an obtaining unit configured to obtain channel busy ratios (CBRs) of a plurality of candidate carriers; and a carrier selection unit configured to: when a value of a resource reselection counter C_resel is equal to 0, select a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers obtained by the obtaining unit.
 10. The communications device of claim 9 wherein each of the plurality of candidate carriers is configured with a corresponding C_resel; and wherein selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises: when a value of a C_resel that corresponds to a carrier used in current data transmission and that is in a plurality of C_resel configured for the plurality of candidate carriers is equal to 0, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 11. The communications device of claim 9 further comprising: a determining unit configured to determine whether a CBR of a first carrier exceeds a third threshold when a value of a C_resel is equal to 0, wherein the first carrier is a carrier used in current data transmission; and wherein the carrier selection unit is further configured to select a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises, if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 12. The communications device of claim 11 wherein: the determining unit is further configured to determine, when a value of a C_resel is equal to 0, whether a CBR of a first carrier exceeds a third threshold, wherein the first carrier is a carrier used in current data transmission; and the carrier selection unit is further configured to, if the CBR of the first carrier exceeds the third threshold, select a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 13. A computer-readable storage medium storing computer-executable instructions that, when executed by a computer system, configure the computer system to perform operations comprising: obtaining channel busy ratios (CBRs) of a plurality of candidate carriers; and when a value of a resource reselection counter C_resel is equal to 0, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 14. The computer-readable storage medium of claim 13 wherein: each of the plurality of candidate carriers is configured with a corresponding C_resel; and selecting, when a value of a C_resel is equal to 0, a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises: when a value of a C_resel that corresponds to a carrier used in a current data transmission and that is in a plurality of C_resel configured for the plurality of candidate carriers is equal to 0, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 15. The computer-readable storage medium of claim 13 the operations further comprising: when a value of a C_resel is equal to 0, determining whether a CBR of a first carrier exceeds a third threshold, wherein the first carrier is a carrier used in current data transmission; and selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises, if the CBR of the first carrier exceeds the third threshold, selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 16. The computer-readable storage medium of claim 15 wherein the plurality of candidate carriers comprise the first carrier.
 17. The computer-readable storage medium of claim 13 wherein selecting a carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers comprises selecting a carrier having a smallest CBR as a to-be-used carrier from the plurality of candidate carriers according to the CBRs of the plurality of candidate carriers.
 18. The computer-readable storage medium of claim 13 wherein the operations are performed by a terminal device, and obtaining CBRs of the plurality of candidate carriers comprises measuring, by the terminal device, the CBRs of the plurality of candidate carriers, to obtain the CBRs of the plurality of candidate carriers.
 19. The computer-readable storage medium of claim 18 wherein a CBR of each of the plurality of candidate carriers is a CBR of a resource pool used by the terminal device on the carrier.
 20. The computer-readable storage medium of claim 19 wherein the resource pool used by the terminal device on the carrier is a resource pool that corresponds to a zone of a terminal and that is in a plurality of resource pools, and there are correspondences between the plurality of resource pools and a plurality of zones. 